package cn.zhuama.basic.sevice;

import cn.zhuama.basic.query.BaseQuery;
import cn.zhuama.basic.util.PageList;
import cn.zhuama.org.domain.Department;
import cn.zhuama.org.query.DepartmentQuery;

import javax.management.Query;
import java.util.List;

public interface IBaseService<T> {
    void add(T t) ;

    void del(Long id);

    void update(T t);

    T queryOne(Long id);

    List<T> findAll();
    /**
     * 分页查询
     * @param query
     * @return
     */
    PageList<T> queryPage(BaseQuery query);

    void patchDel(List<Long> ids);
}
